package com.example.spzx.Mapper;

import com.example.spzx.model.entity.system.SysMenu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysMenuMapper {
    @Select("select * from sys_menu")
    List<SysMenu> selectAll();

    void add(SysMenu sysMenu);

    void update(SysMenu sysMenu);

    int selectcountbyid(Long id);
@Delete("delete from sys_menu where id=#{id}")
    void deleteById(Long id);

    List<SysMenu> getlistbyuserId(Integer userId);
}
